<include file="Public/left" />

<script>
$(function(){
	$("tr:even").css('background','#eee')
})
</script>
<div class="title title-article">导航列表</div>

<table class="table" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr class="first">
    <td width="30" align="center">ID</td>
    <td>名称</td>
    <td width="80" align="center">状态</td>
    <td width="100" align="center">上级导航</td>
    <td width="120" align="center">操作</td>
  </tr>
  <volist name="nav" id="list">
  <tr>
    <td width="30" align="center"><{$list['id']}></td>
    <td><{$list['name']}></td>
    <td width="80" align="center" onClick="changeStatus(<{$list['id']}>,this)"><{$list['status'] ? '显示' : '隐藏'}></td>
    <td width="100" align="center"><if condition="$list['pid'] eq 0">顶级分类<else /><{:getNavName($list['pid'])}></if></td>
    <td width="120" align="center"><a class="edit" href="<{:U('edit','id='.$list['id'])}>">修改</a> <a class="del" href="<{:U('delete','id='.$list['id'])}>" onClick="return confirm('确定要删除吗？')">删除</a></td>
  </tr>
  </volist>
</table>


<include file="Public/foot" />